<template>
  <div style="width: 460px">
    <el-button @click="print">父亲打印</el-button>
    <mc-echarts-config :echarts="echarts"
                       project-uuid="2c9fe31d79d0fba10179d0fea5be0000"></mc-echarts-config>
  </div>
</template>

<script>
import McEchartsConfig from './components/McEchartsConfig'
export default {
  data(){
    return {
      echarts:{
        dataManager:{
          mcIntervalSeconds:0,
          dataType:0,
          choose0:{
            originData:{
              stage:"db",//api|db
              apiUuid:"",
              tableUuid:""
            },
            config:{
              x:[{field:""}],
              y:[{field:"",name:"",type:"",stack:"",areaStyle:{}}],
              api:{
                method:"post",//post|get
                url:"",//
                params:[],//name入参名 compare:比较符号 value:值 type:number,string
                fields:[],//返回字段
                limit:1000//限制多少条
              }
            }
          },
          choose1:{x:"",y:"",sourceApi:""},
          choose2:{x:"",y:"",sourceApi:""},
          choose3:{data:[]}
        }
      }
    }
  },
  components:{
    McEchartsConfig
  },
  methods : {
    print(){
      console.log(this.echarts)
    },
    change(val){
      console.log(this.echarts)
      console.log(val)
    }
  }
}
</script>

<style>

</style>
